Skip to content

feat: remove suffix from end column - #400

Merged
cx-lior-poterman merged 14 commits into
masterfrom
AST-151006-remove-suffix-from-end-column
Sep 16, 2026
Merged

cx-lior-poterman merged 14 commits into
masterfrom
AST-151006-remove-suffix-from-end-column

Conversation

@cx-diogo-rocha

@cx-diogo-rocha cx-diogo-rocha commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Closes #

Proposed Changes
Suffixes of regexes of most rules were being considered as part of the location of the secret.
This created inconsistent EndColumn values between scans for secrets that got a new line, a ";" or '"' character at the end.
This feature removes those characters from the EndColumn value, accurately representing the end of the secret
StartColumn will still account for prefixes such as variables preceding the secret.

Checklist

  • I covered my changes with tests.
  • I Updated the documentation that is affected by my changes:
    • Change in the CLI arguments
    • Change in the configuration file

I submit this contribution under the Apache-2.0 license.

@cx-diogo-rocha
cx-diogo-rocha requested a review from a team as a code owner September 14, 2026 16:17
cx-julio-silva
cx-julio-silva previously approved these changes Sep 14, 2026
Base automatically changed from AST-151006-fix-line-content to master September 16, 2026 12:57
@cx-lior-poterman
cx-lior-poterman dismissed cx-julio-silva’s stale review September 16, 2026 12:57

The base branch was changed.

@cx-lior-poterman
cx-lior-poterman requested a review from a team September 16, 2026 12:57

@cx-artur-ribeiro cx-artur-ribeiro left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cx-lior-poterman
cx-lior-poterman merged commit b2522d4 into master Sep 16, 2026
5 of 15 checks passed
@cx-lior-poterman
cx-lior-poterman deleted the AST-151006-remove-suffix-from-end-column branch September 16, 2026 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants